package com.ruoyi.experiment.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 应急预案对象 emergency_plan
 * 
 * @author gw
 * @date 2025-01-08
 */
public class EmergencyPlan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 应急预案ID */
    private Long planId;

    /** 实验ID */
    @Excel(name = "实验ID")
    private Long experimentId;

    /** 实验名称 */
    @Excel(name = "实验名称")
    private String experimentName;

    /** 事故类型 */
    @Excel(name = "事故类型")
    private Integer incidentType;

    /** 应急措施 */
    @Excel(name = "应急措施")
    private String emergencyAction;

    /** 响应时间（分钟） */
    @Excel(name = "响应时间", readConverterExp = "分=钟")
    private Integer responseTime;

    /** 报告日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "报告日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reportDate;

    /** 删除人 */
    private String deleteBy;

    /** 删除时间 */
    private Date deleteTime;

    /** 版本号，用于乐观锁控制 */
    private Long version;

    /** 删除标记（0-未删除（默认），1-已删除） */
    private Integer delFlag;

    public String getExperimentName() {
        return experimentName;
    }

    public void setExperimentName(String experimentName) {
        this.experimentName = experimentName;
    }

    public void setPlanId(Long planId)
    {
        this.planId = planId;
    }

    public Long getPlanId() 
    {
        return planId;
    }
    public void setExperimentId(Long experimentId) 
    {
        this.experimentId = experimentId;
    }

    public Long getExperimentId() 
    {
        return experimentId;
    }
    public void setIncidentType(Integer incidentType) 
    {
        this.incidentType = incidentType;
    }

    public Integer getIncidentType() 
    {
        return incidentType;
    }
    public void setEmergencyAction(String emergencyAction) 
    {
        this.emergencyAction = emergencyAction;
    }

    public String getEmergencyAction() 
    {
        return emergencyAction;
    }
    public void setResponseTime(Integer responseTime) 
    {
        this.responseTime = responseTime;
    }

    public Integer getResponseTime() 
    {
        return responseTime;
    }
    public void setReportDate(Date reportDate) 
    {
        this.reportDate = reportDate;
    }

    public Date getReportDate() 
    {
        return reportDate;
    }
    public void setDeleteBy(String deleteBy) 
    {
        this.deleteBy = deleteBy;
    }

    public String getDeleteBy() 
    {
        return deleteBy;
    }
    public void setDeleteTime(Date deleteTime) 
    {
        this.deleteTime = deleteTime;
    }

    public Date getDeleteTime() 
    {
        return deleteTime;
    }
    public void setVersion(Long version) 
    {
        this.version = version;
    }

    public Long getVersion() 
    {
        return version;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("planId", getPlanId())
            .append("experimentId", getExperimentId())
            .append("incidentType", getIncidentType())
            .append("emergencyAction", getEmergencyAction())
            .append("responseTime", getResponseTime())
            .append("reportDate", getReportDate())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("deleteBy", getDeleteBy())
            .append("deleteTime", getDeleteTime())
            .append("version", getVersion())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
